<?php
//
//-------------------------------------------------
// | CreateTime: 2020/8/25 9:34
//+------------------------------------------------
// | Author: chenxueyuan
//+------------------------------------------------
// | Describe: ...
//+------------------------------------------------

namespace app\admin\validate;


use think\Validate;

class Tags extends Validate
{
    protected $rule =   [
        'name'  => 'require|max:10|min:1|unique:tags',

    ];

    protected $message  =   [
        'name.require'  => '名称不能为空',
        'name.max'      => '不能大于10',
        'name.min'      => '不能小于1',
        'name.unique'   => '标签已经存在',


    ];

}